package com.jinsi.service.impl;

import com.jinsi.mapper.DeptMapper;
import com.jinsi.pojo.Dept;
import com.jinsi.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;
    @Override
    public List<Dept> getAll() {
        return deptMapper.getAll();
    }

    @Override
    public List<Dept> getDeptsByName(String deptName) {
        return deptMapper.getDeptsByName(deptName);
    }
}
